<!--
Computer Science Course 531 - Introduction to Software Engineering
Olive Insurance Client Management System (Client Database Access)
Version 1.0 (Base System)
Spring 2011

-- Source Code Details --
Page Tile: employeeDetails.php
Created By: David Gonzalez, Computer Science (Undergraduate)
Documented By: Darrius Serrant, Computer Science (Undergraduate)
Purpose: User interface allowing the user access to the data related to a unique data field
         in the Employees Database Table.
Status: In Evaluation: All security blocks, form validation, and database
         connectivity features have been omitted for the time being to illustrate
         the application's basic flow and functionality.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <h2>Employee Database:</h2>
    <body>
        <?php
        $User_Name = $_POST['User_Name'];
        $password = $_POST['password'];
        if(isset($_POST['save'])){
            echo "Record Saved <br>";
        }
        if(isset($_POST['delete'])){
            echo "Record Deleted <br>";
        }
        if(isset($_POST['find'])){
            echo "Display Record Found <br>";
        }
        if(isset($_POST['search'])){
            echo "Enter Social Security Number to Search <br>";
            ?>
            Social Security: <input type="text" name="SS#">
            <form action="Employee.php" method ="POST">
            <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
            <input type=hidden name=password value="<?php echo $password;?>">
            <input type="submit" name="find" value="Find">
            </form>
            <?php
        }else{
        ?>
        Employee Name: <input type="text" name="EName">       Employer: <input type="text" name="Employer"><br>
        Street Address: <input type="text" name="Address">       Carrier: <input type="text" name="Carrier"><br>
        City: <input type="text" name="City">       Coverage Type: <input type="text" name="CType"><br>
        Phone Number: <input type="text" name="PNumber">       Effective Date: <input type="text" name="EDate"><br>
        Social Security: <input type="text" name="SS#">       Renewal Date: <input type="text" name="RDate"><br>
        <form action="Employee.php" method ="POST">
        <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
        <input type=hidden name=password value="<?php echo $password;?>">
        <input type="submit" name="save" value="Save">
        </form>
        <form action="Employee.php" method ="POST">
        <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
        <input type=hidden name=password value="<?php echo $password;?>">
        <input type="submit" name="delete" value="Delete">
        </form>
        <form action="Employee.php" method ="POST">
        <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
        <input type=hidden name=password value="<?php echo $password;?>">
        <input type="submit" name="search" value="Search">
        </form>
        <form action="Choose.php" method ="POST">
        <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
        <input type=hidden name=password value="<?php echo $password;?>">
        <input type="submit" name="LogOut" value="Back">
        </form>
        <?php
        }?>
    </body>
</html>